//package com.dkd.common.config;
//
//import io.minio.MinioClient;
//import lombok.Data;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@ConfigurationProperties("minio")
//@Data
//public class MinIOConfig {
//    private String accessKey;
//    private String secretKey;
//    private String bucket;
//    private String endPoint;
//    private String readPath;
//    @Bean
//    public MinioClient buildMinioClient(){
//        return MinioClient
//                .builder()
//                .credentials(accessKey,secretKey)
//                .endpoint(endPoint)
//                .build();
//    }
//}